package entity;

import lombok.Data;
import lombok.experimental.Accessors;

import java.util.HashSet;
import java.util.Set;


/**
 * @author moter-code01
 */
//@Data
//@Accessors(chain = true)
public class Address extends BaseEntity {
    private String id;
//    private String userId;
    private String title;
    private String address;

    private User user;
    private Set<Order> orders = new HashSet<>();


    @Override
    public String toString() {
        return "Address{" +
                "id='" + id + '\'' +
                ", title='" + title + '\'' +
                ", address='" + address +
                '}';
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    public User getUser() {
        return user;
    }

    public void setUser(User user) {
        this.user = user;
    }

    public Set<Order> getOrders() {
        return orders;
    }

    public void setOrders(Set<Order> orders) {
        this.orders = orders;
    }
}
